﻿using System;

namespace diantou.web.enterprise
{
    /// <summary>
    /// 所有答卷
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class paperList : examView<paperList>
    {
        /// <summary>
        /// 答卷人员
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.examDataAccess.examUser[] users;
        /// <summary>
        /// 评审人员是否存在查看页面权限
        /// </summary>
        protected override bool isReviewUserPage
        {
            get { return true; }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="examId"></param>
        /// <returns></returns>
        private bool loadView(int examId, diantou.dataModel.examUser.status status, diantou.examDataAccess.examUser.sex sex, diantou.examDataAccess.examUser.sortType sort, bool isAsc, int page)
        {
            if (load(examId))
            {
                if (sort == examDataAccess.examUser.sortType.None) query.sort = sort = examDataAccess.examUser.sortType.ExamTime;
                users = diantou.examDataAccess.tcpCall.examUser.get(examId, currentUserId, status, sex, sort, isAsc, pageInfo.Size = 40, pageInfo.Page = page, out pageInfo.Count);
                return true;
            }
            return false;
        }
    }
}
